﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
///DBTools 的摘要说明
/// </summary>
public class DBTools
{
    private static string connectionstring = ConfigurationManager.ConnectionStrings["DBConn"].ConnectionString;
	public DBTools()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public static SqlConnection getDBConnection()
    {
        return new SqlConnection(connectionstring);
    }
}